﻿@model Coslen.TahorCRM.Domain.Entities.ViewModels.Editing.AddressEditViewModel
<fieldset class="addressFieldSet">
    @Html.HiddenFor(model => model.Address.AddressId)
    @Html.HiddenFor(model => model.Address.CreatedAt)
    @Html.HiddenFor(model => model.Address.UpdatedAt)
    @Html.HiddenFor(model => model.Address.DeletedAt)
    @Html.HiddenFor(model => model.Address.EntityLinkId)
    <div class="address_labels">
        <div class="street1">@Html.LabelFor(model => model.Address.Street1)</div>
        <div class="street2">@Html.LabelFor(model => model.Address.Street2)</div>
        <div class="street3">@Html.LabelFor(model => model.Address.Street3)</div>
    </div>
    <div class="address_editors">
        <div class="street1">
            @Html.EditorFor(model => model.Address.Street1)
            @Html.ValidationMessageFor(model => model.Address.Street1)
        </div>
        <div class="street2">
            @Html.EditorFor(model => model.Address.Street2)
            @Html.ValidationMessageFor(model => model.Address.Street2)
        </div>
        <div class="street3">
            @Html.EditorFor(model => model.Address.Street3)
            @Html.ValidationMessageFor(model => model.Address.Street3)
        </div>
    </div>
    <div class="address_labels">
        <div class="suburb">@Html.LabelFor(model => model.Address.Suburb)</div>
        <div class="state">@Html.LabelFor(model => model.Address.CountryRegionId)</div>
        <div class="country">@Html.LabelFor(model => model.Address.CountryId)</div>
    </div>
    <div class="address_editors">
        <div class="suburb">
            @Html.EditorFor(model => model.Address.Suburb)
            @Html.ValidationMessageFor(model => model.Address.Suburb)
        </div>
        <div class="state">
            @Html.DropDownListFor(model => model.Address.CountryRegionId, Model.CountryRegionList)
            @Html.ValidationMessageFor(model => model.Address.CountryRegionId)
        </div>
        <div class="country">
            @Html.DropDownListFor(model => model.Address.CountryId, Model.CountryList)
            @Html.ValidationMessageFor(model => model.Address.CountryId)
        </div>
    </div>
    <div class="address_labels">
        <div class="postCode">@Html.LabelFor(model => model.Address.PostCode)</div>
        <div class="addressType">@Html.LabelFor(model => model.Address.AddressTypeId)</div>
        <div class="doNotUse">@Html.LabelFor(model => model.Address.DoNotUse)</div>
    </div>
    <div class="address_editors">
        <div class="postCode">
            @Html.EditorFor(model => model.Address.PostCode)
            @Html.ValidationMessageFor(model => model.Address.PostCode)
        </div>
        <div class="addressType">
            @Html.DropDownListFor(model => model.Address.AddressTypeId, Model.AddressTypeList)
            @Html.ValidationMessageFor(model => model.Address.AddressTypeId)
        </div>
        <div class="doNotUse">
            @Html.EditorFor(model => model.Address.DoNotUse)
            @Html.ValidationMessageFor(model => model.Address.DoNotUse)
        </div>
    </div>
</fieldset>
